home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!yaps!arno
- From: arno@yaps.rhein.de (Arno Eigenwillig)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: x ^= y ^= x ^= y;
- Message-ID: <3Du8y*20g@yaps.rhein.de>
- Date: Fri, 23 Feb 1996 20:51:15 +0100
- References: <1286.6624T1439T237@cs.ruu.nl>
- Organization: Yet Another Private Site in Meckenheim, Germany
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Copyright: This article may not be distributed on a CD-ROM
- or in printed form without prior written consent of the author.
- X-Newsreader: Arn V 1.04
-
- In article <1286.6624T1439T237@cs.ruu.nl>, Wessel Dankers writes:
-
- > Which can of course be rewritten as:
- >
- > x ^= y;
- > y ^= x;
- > x ^= y;
-
- Yes.
-
- > or if you want it real fancy:
- >
- > x ^= y ^= x ^= y;
-
- No. Reread your C text book and find out about sequence points, side
- effects, and which combinations of them are not allowed.
-
- -- __
- __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key available.
- \XX/ V+49-2225-5870 /\ <Arnooo @ #amigager> \/ MIME 8bit welcome.
-